<div class="am-u-sm-12">


    <form class="am-form" id="list-form" action="${base}/activity/list" method="post">
        <input type="hidden" id="keywords" name="keywords" value='${keywords!""}'/>
        <input type="hidden" id="city_id_input" name="city_id_input" value='${city_id!""}'/>
        <table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
            <tbody>

            <tr>
                <th class="am-text-middle">名称</th>
                <td>
                    <div class="am-u-sm-10"colspan="3">
                        <input style="width: 50%" type="text" id="name"  value="${name!}" class="am-form-field am-input-sm"/>
                    </div>
                </td>

            </tr>


            <tr>
                <th>时间</th>
                <td colspan="3">
                    <div class="am-u-sm-10">
                        <div class="am-form am-form-inline">
                            <div class="am-form-group am-form-icon">
                                <i class="am-icon-calendar"></i>
                                <input type="text" class="am-form-field am-input-sm" id="startTime"
                                       value="${start_time!}" placeholder="开始日期" data-am-datepicker readonly>
                            </div>
                            <div class="am-form-group">至</div>
                            <div class="am-form-group am-form-icon">
                                <i class="am-icon-calendar"></i>
                                <input type="text" class="am-form-field am-input-sm" id="endTime" value="${end_time!}"
                                       placeholder="结束日期" data-am-datepicker readonly>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>

            <tr>
                <td colspan="4">
                    <div align='right'>
                        <button type="button" class="am-btn am-btn-default am-btn-sm am-text-secondary" id="submit-btn"
                                onClick="submit_btn('search');">搜索
                        </button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/javascript">
    $(function(){
        if($("#keywords").val().length<1){
            var keywordsObj = {};
            keywordsObj.city_id = $("#city_id_input").val();
            var keywords = JSON.stringify(keywordsObj);
            $("#keywords").val(keywords);
        }
        if($("#city_id").prop("disabled")){
            $("#city_id").selected('disable')
        }
    });
</script>